
%   This script creates the histograms of the asymmetry parameters in KO


n = 2;

subnames = ['\tau_1';'\tau_2';'\tau_3'];
index = [4,5];
figure
for i = 1:1;
    xxx1 = [res_tab(1,index(i)).resa(:,2)];
    subplot(3,2,(1)),hist(xxx1,20);
    xlab = xlabel('\tau'); set(xlab,'FontSize',8);
    ylab = ylabel('# of Forecasters'); set(ylab,'FontSize',7);
    title(subnames(1,:));
    
    xxx2 = [res_tab(1,index(i)).resa(:,3)];
    subplot(3,2,(2)),hist(xxx2,20);
    xlab = xlabel('\tau'); set(xlab,'FontSize',8); 
    ylab = ylabel('# of Forecasters'); set(ylab,'FontSize',7);
    title(subnames(2,:))
    
    xxx3 = [res_tab(1,index(i)).resa(:,4)];
    subplot(3,2,(3)),hist(xxx3,20);
    xlab = xlabel('\tau'); set(xlab,'FontSize',8); 
    ylab = ylabel('# of Forecasters'); set(ylab,'FontSize',7);
    title(subnames(3,:))

    
    yyy1 = [res_tab(1,index(i)).resb(:,2)];
    subplot(3,2,(4)),hist(yyy1,20);
    xlab = xlabel('\tau'); set(xlab,'FontSize',8);
    ylab = ylabel('# of Forecasters'); set(ylab,'FontSize',7);
    title(subnames(1,:));
    
    yyy2 = [res_tab(1,index(i)).resb(:,3)];
    subplot(3,2,(5)),hist(yyy2,20);
    xlab = xlabel('\tau'); set(xlab,'FontSize',8); 
    ylab = ylabel('# of Forecasters'); set(ylab,'FontSize',7);
    title(subnames(2,:))
    
    yyy3 = [res_tab(1,index(i)).resb(:,4)];
    subplot(3,2,(6)),hist(yyy3,20);
    xlab = xlabel('\tau'); set(xlab,'FontSize',8); 
    ylab = ylabel('# of Forecasters'); set(ylab,'FontSize',7);
    title(subnames(3,:))
end,
%h_leg = legend('Univariate','Multivariate'); set(h_leg, 'FontSize',8); 
% supt = suptitle('Figure 3'); 

